<?php
/**
 * The development database settings.
 */

 
return array(
        'mssql' => array(
                'default' => array(
                        'hostname' => '192.168.1.215\DEVMSDBDC',
                        'database' => 'SgameBilling',
                        'username' => 'devsql',
                        'password' => 'zhuang1410###',
                        'persistent' => FALSE
                ),
                'table_prefix' => '',
                'charset' => 'utf8',
                'caching' => false,
                'profiling' => true
        )
);

/*
 *  public $config = array(
            'host' => '',
            'user' => '',
            'pass' => ''
    );

    public $connection;

    public function __construct ()
    {
        
        
        // get config
        $this->config = \Config::get('db.mssql');
        $this->connection = mssql_connect($this->config['connection']['host'], $this->config['connection']['user'], $this->config['connection']['pass']);
        
        if (! $this->connection) {
            throw ('Something went wrong while connecting to MSSQL');
        }
        
        mssql_select_db($this->config['connection']['db'], $this->connection);
    }
 */
  